package com.mybatis.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mybatis.entity.User;
import com.mybatis.interceptor.DataScope;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author ALIEN-ZHU
 * @since 2020-05-07
 */
@Mapper
public interface UserMapper {

    @SqlParser(filter = true)
    @DataScope(type = "DEPT", column = "create_dept")
    IPage<User> selectPage(IPage<User> page, @Param("m") Map<String, Object> queryMap);

}
